<template>
  <table>
    <tr>
      <th>NO.</th>
      <th>Name</th>
      <th>Open</th>
    </tr>
    <tr v-for="(item, index) in items" :key="index">
      <td> {{ index +1 }}</td>
      <td> {{ item.Name}} </td>
      <td> <a href= "#" @Click="Del" > Del </a> </td>
    </tr>
  </table>
</template>

<script>
export default {
  name: 'index',
  data: function () {
    return {
      msg: '123',
      items: [{Name: '1'}, {Name: '2'}, {Name: '3'}]
    }
  },
  methods: {
    Del: function () {
      console.log('del ')
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
